<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Indexed Search Engine example template</title>
</head>
<body>

<h1>INDEXED SEARCH ENGINE TEMPLATES</h1>
<h2>EXAMPLE</h2>
<pre>
<strong>Common markers:</strong>
These are substituted in all indexed search engine templates:

<em>Markers:</em>
SEARCHFORM
RULES
HITS
SWORD
SWORD_PREV
SWPCHECKED
TYPE
DEFOP
MEDIA
LANG
SECTION
ORDER
DESC
RESULTS
GROUP
EXTENDEDRESUME
ADVANCEDSEARCH
SHOWRESULTCOUNT
PREVIOUS
MIDDLE
NEXT
BROWSEBOX1
WHATISSEARCHEDFOR
HITS
BROWSEBOX2
NORESULTS
ICON
RESULTNUMBER
TITLE
RATING
DESCRIPTION
SIZE
CREATED
MODIFIED
ACCESS
LANGUAGE
PATH
DESCRIPTION
SUBROW
EXT
SECHEADANCHOR
SECHEADTITLE
SECHEADCOUNTER
SECTIONLINK

<em>Stylesheets Markers (see sysext/index_search/pi/locallang.xml):</em>
SUBMITSTYLE
SWORDSTYLE
TPARAMS
WHATISSTYLE
LISTSTYLE
PBSTYLE
TITLESTYLE
ICONSTYLE
TCAPTIONSTYLE
PERCENTSTYLE
INFOSTYLE
STYLEDESCRIPTION
INFOSTYLE2
STYLESECHEAD
STYLESECLINKS
TPARAMSSECHEAD

<em>Language Markers (see sysext/index_search/ext_typoscript_setup.txt):</em>
LSEARCHFOR
LADDTOCURRENTSEARCH
LSUBMIT
LFORMMATCH
LSEARCHIN
LFROMSECTION
LORDERBY
LFORMSTYLE
LOTHERMATCHING
    
</pre>

<h3>TEMPLATE_MAIN</h3>
<em>This subpart is used to display the main page (i.e. default search form + rules + hits + pagebrowser)</em>
<!-- ###MAIN### begin -->
    ###SEARCHFORM###
    ###RULES###
    ###HITS###
<!-- ###MAIN### end -->

<h3>TEMPLATE_DEFAULTSEARCH</h3>
<em>This subpart is used to display the default search form</em>
<!-- ###DEFAULTSEARCH### begin -->
    <div ###SEARCHBOXSTYLE###>
        <form action="###FORM###" method="post" name="###PREFIXID###" style="margin: 0 0 0 0;">
            <table ###TPARAMS###>
                <tr>
                    <td nowrap="nowrap"><p>###LSEARCHFOR###&nbsp;</p></td>
                    <td><input type="text" name="###PREFIXID###[sword]" value="###SWORD###" ###SWORDSTYLE###>&nbsp;&nbsp;<input type="submit" name="###PREFIXID###[submit_button]" value="###LSUBMIT###" ###SUBMITSTYLE###></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="hidden" name="###PREFIXID###[sword_prev]" value="###SWORD_PREV###">
                        <input type="checkbox" name="###PREFIXID###[sword_prev_include] value="1" ###SWPCHECKED###>
                        ###LADDTOCURRENTSEARCH###
                    </td>
                </tr>
        
                <!--###MATCH### begin-->
                    <tr>
                        <td nowrap="nowrap"><p>###LFORMMATCH###&nbsp;</p></td><td>###TYPE### ###DEFOP###</td>
                    </tr>
                <!--###MATCH### end-->
                <!--###SEARCHIN### begin-->
                    <tr>
                        <td nowrap="nowrap"><p>###LSEARCHIN###&nbsp;</p></td><td>###MEDIA### ###LANG###</td>
                    </tr>
                <!--###SEARCHIN### end-->
                <!--###FROMSECTION### begin-->
                    <tr>
                        <td nowrap="nowrap"><p>###LFROMSECTION###&nbsp;</p></td><td>###SECTION###</td>
                    </tr>
                <!--###FROMSECTION### end-->
                <!--###ORDERBY### begin-->
                    <tr>
                        <td nowrap="nowrap"><p>###LORDERBY###&nbsp;</p></td><td><p>###ORDER### ###DESC### ###RESULTS###</p></td>
                    </tr>
                <!--###ORDERBY### end-->
                <!--###STYLE### begin-->
                    <tr>
                        <td nowrap="nowrap"><p>###LFORMSTYLE###&nbsp;</p></td><td><p>###GROUP### ###EXTENDEDRESUME###</p></td>
                    </tr>
                <!--###STYLE### end-->        
        
                <input type="hidden" name="###PREFIXID###[_sections]" value="0">
                <input type="hidden" name="###PREFIXID###[pointer]" value="0">
                <input type="hidden" name="###PREFIXID###[ext]" value="###EXT###">
                <input type="hidden" name="###PREFIXID###[_freeIndexUid]" value="_" />
            </table>
        </form>   
        <p>
            ###ADVANCEDSEARCH###
        </p>
    </div>
<!-- ###DEFAULTSEARCH### end -->    

<h3>TEMPLATE_PAGEBROWSER</h3>
This subpart is used to display the pagebrowser
<!-- ###PAGEBROWSER### begin -->
<div ###PBSTYLE###>
    <p>
        ###SHOWRESULTCOUNT###
    </p>
    <table>
        <tr>
            <td><p>###PREVIOUS###</p></td>
                <!--###CONTENT###-->
                    <!--###LIST_ITEM###-->
                        <td ###LISTSTYLE###><p>###MIDDLE###</p></td>
                    <!--###LIST_ITEM###-->
                <!--###CONTENT###-->
            <td><p>###NEXT###</p></td>
        </tr>
    </table>
</div>
<!-- ###PAGEBROWSER### end -->

<h3>TEMPLATE_GETDISPLAYRESULTS</h3>
<em>This subpart is used to display the getDisplayResults (i.e search-hits plus pagebrowser).</em>
<!-- ###GETDISPLAYRESULTS### begin -->
    ###BROWSEBOX1###
    <div ###WHATISSTYLE###><p>###WHATISSEARCHEDFOR###</p></div>
    ###HITS###
    ###BROWSEBOX2###
    <!--###NORESULTS### begin-->
        <p ###NORESULTSSTYLE###>###NORESULTS###</p>
    <!--###NORESULTS### end-->
<!-- ###GETDISPLAYRESULTS### end -->


<h3>TEMPLATE_PRINTRESULTROW</h3>
<em>This subpart is used to display the printResultRow (i.e single search-hit row).</em>
<!-- ###PRINTRESULTROW### begin -->
<table ###TPARAMS###>
    <tr ###TITLESTYLE###>
        <td width="16" ###ICONSTYLE###>###ICON###</td>
        <td width="95%" nowrap="nowrap"><p>
            <span ###TNUMBERSTYLE###>###RESULTNUMBER###: </span>
            <span ###TCAPTIONSTYLE###>###TITLE###</span></p>
        </td>
        <td nowrap="nowrap"><p ###PERCENTSTYLE###>###RATING###</p></td>
    </tr>
    <!--###RESUMSECTION###-->
        <!--###RS_ITEM###-->
            <tr>
                <td></td>
                <td colspan="2" ###STYLEDESCRIPTION###><p>###DESCRIPTION###</p></td>
            </tr>
            <tr>
                <td></td>
                <td ###INFOSTYLE### nowrap="nowrap"><p>###SIZE### - ###CREATED### - ###MODIFIED###<br>
                    ###PATH###</p>
                </td>
                <td ###INFOSTYLE2### align="right"><p>###ACCESS### ###LANGUAGE###</p>
            </tr>
        <!--###RS_ITEM###-->
    <!--###RESUMSECTION###-->
    
    <!--###HEADERONLY###-->
        <!--###HO_ITEM###-->
            <tr>
                <td></td>
                <td colspan="2" ###STYLEDESCRIPTION###><p>###DESCRIPTION###</p></td>
            </tr>
        <!--###HO_ITEM###-->
    <!--###HEADERONLY###-->
    
    <!--###SUBROWTITLE###-->
        <!--###SR_TITLE###-->
            <tr>
                <td></td>
                <td colspan="2"><p><br>###LOTHERMATCHING###<br><br><p></td>
            </tr>    
        <!--###SR_TITLE###-->            
    <!--###SUBROWTITLE###-->
    
    <!--###SUBROWS###-->
        <!--###SR_ITEM###-->
            <tr>
                <td></td>
                <td colspan="2"><p>###SUBROW###</p></td>
            </tr>
        <!--###SR_ITEM###-->
    <!--###SUBROWS###-->    
</table>    
<!-- ###PRINTRESULTROW### end -->

<h3>TEMPLATE_SECTIONHEADER</h3>
<em>This subpart is used to display the SectionHeader.</em>
<!-- ###SECTIONHEADER### begin -->
<div ###STYLESECHEAD###>
    <a name="###SECHEADANCHOR###"></a>
    <table ###TPARAMSSECHEAD###>
        <tr>
            <td width="95%"><h2>###SECHEADTTITLE###</h2></td>
            <td align="right" nowrap="nowrap"><p>###SECHEADCOUNTER###</p></td>
        </tr>
    </table>
</div>
<!-- ###SECTIONHEADER### end -->


<h3>TEMPLATE_SECTIONSLINKS</h3>
<em>This subpart is used to display the printResultSectionLinks.</em>
<!-- ###SECTIONSLINKS### begin -->
<div ###STYLESECLINKS###>
    <ul>
        <!--###CONTENT###-->
            <!--###LIST_ITEM###-->
                <li>###SECTIONLINK###</li>
            <!--###LIST_ITEM###-->
        <!--###CONTENT###-->
    </ul>
</div>
<!-- ###SECTIONSLINKS### end -->

</body>
</html>